.class final Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;
.super Landroid/widget/LinearLayout;
.source "ModalBrowserView.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation build Landroid/annotation/SuppressLint;
    value = {
        "ViewConstructor"
    }
.end annotation


# static fields
.field private static final LOG:Lcom/burstly/lib/util/LoggerExt;


# instance fields
.field private mBackButton:Landroid/widget/Button;

.field private mButtonsContainer:Landroid/widget/LinearLayout;

.field private mCloseButton:Landroid/widget/Button;

.field private mCloseListener:Landroid/view/View$OnClickListener;

.field private mDestroyCallback:Ljava/lang/Runnable;

.field private mNextButton:Landroid/widget/Button;

.field private mOpenExternalButton:Landroid/widget/Button;

.field mRewardsView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

.field private mShowNavigationControls:Z


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 49
    invoke-static {}, Lcom/burstly/lib/util/LoggerExt;->getInstance()Lcom/burstly/lib/util/LoggerExt;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->LOG:Lcom/burstly/lib/util/LoggerExt;

    return-void
.end method

.method constructor <init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
    .locals 6
    .parameter "context"
    .parameter "html"
    .parameter "baseUrl"

    .prologue
    const/4 v3, 0x0

    .line 104
    invoke-direct {p0, p1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    .line 105
    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->setOrientation(I)V

    .line 106
    invoke-direct {p0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->createButtons(Landroid/content/Context;)V

    .line 107
    invoke-direct {p0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->layout(Landroid/content/Context;)V

    .line 108
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mRewardsView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    const-string v4, "utf-8"

    move-object v1, p3

    move-object v2, p2

    move-object v5, v3

    invoke-virtual/range {v0 .. v5}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->loadDataWithBaseURL(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 109
    return-void
.end method

.method constructor <init>(Landroid/content/Context;Ljava/lang/String;Z)V
    .locals 1
    .parameter "context"
    .parameter "url"
    .parameter "showNavigationControls"

    .prologue
    .line 119
    invoke-direct {p0, p1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    .line 120
    iput-boolean p3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mShowNavigationControls:Z

    .line 121
    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->setOrientation(I)V

    .line 122
    invoke-direct {p0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->createButtons(Landroid/content/Context;)V

    .line 123
    invoke-direct {p0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->layout(Landroid/content/Context;)V

    .line 124
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mRewardsView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    invoke-virtual {v0, p2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->loadUrl(Ljava/lang/String;)V

    .line 125
    return-void
.end method

.method private createButtons(Landroid/content/Context;)V
    .locals 4
    .parameter "context"

    .prologue
    .line 167
    new-instance v0, Landroid/widget/Button;

    invoke-direct {v0, p1}, Landroid/widget/Button;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mCloseButton:Landroid/widget/Button;

    .line 168
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mCloseButton:Landroid/widget/Button;

    const-string v1, "Close"

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 169
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mCloseButton:Landroid/widget/Button;

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 170
    iget-boolean v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mShowNavigationControls:Z

    if-eqz v0, :cond_0

    .line 171
    new-instance v0, Landroid/widget/Button;

    invoke-direct {v0, p1}, Landroid/widget/Button;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mBackButton:Landroid/widget/Button;

    .line 172
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mBackButton:Landroid/widget/Button;

    const-string v1, "Back"

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 173
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mBackButton:Landroid/widget/Button;

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 174
    new-instance v0, Landroid/widget/Button;

    invoke-direct {v0, p1}, Landroid/widget/Button;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mNextButton:Landroid/widget/Button;

    .line 175
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mNextButton:Landroid/widget/Button;

    const-string v1, "Forward"

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 176
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mNextButton:Landroid/widget/Button;

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 177
    new-instance v0, Landroid/widget/Button;

    invoke-direct {v0, p1}, Landroid/widget/Button;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mOpenExternalButton:Landroid/widget/Button;

    .line 178
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mOpenExternalButton:Landroid/widget/Button;

    const-string v1, "Open external"

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 179
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mOpenExternalButton:Landroid/widget/Button;

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 184
    :goto_0
    return-void

    .line 181
    :cond_0
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mCloseButton:Landroid/widget/Button;

    new-instance v1, Landroid/widget/LinearLayout$LayoutParams;

    invoke-static {}, Lcom/burstly/lib/util/Utils;->getFillparentValue()I

    move-result v2

    const/4 v3, -0x2

    invoke-direct {v1, v2, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    goto :goto_0
.end method

.method private static getFadeInAnimation()Landroid/view/animation/Animation;
    .locals 9

    .prologue
    const/4 v5, 0x2

    const/high16 v2, 0x3f80

    const/high16 v6, 0x3f00

    const/4 v1, 0x0

    .line 225
    new-instance v0, Landroid/view/animation/ScaleAnimation;

    move v3, v1

    move v4, v2

    move v7, v5

    move v8, v6

    invoke-direct/range {v0 .. v8}, Landroid/view/animation/ScaleAnimation;-><init>(FFFFIFIF)V

    .line 227
    .local v0, animation:Landroid/view/animation/Animation;
    const-wide/16 v1, 0x12c

    invoke-virtual {v0, v1, v2}, Landroid/view/animation/Animation;->setDuration(J)V

    .line 228
    return-object v0
.end method

.method private static getFadeOutAnimation()Landroid/view/animation/Animation;
    .locals 9

    .prologue
    const/4 v5, 0x2

    const/high16 v1, 0x3f80

    const/high16 v6, 0x3f00

    const/4 v2, 0x0

    .line 213
    new-instance v0, Landroid/view/animation/ScaleAnimation;

    move v3, v1

    move v4, v2

    move v7, v5

    move v8, v6

    invoke-direct/range {v0 .. v8}, Landroid/view/animation/ScaleAnimation;-><init>(FFFFIFIF)V

    .line 215
    .local v0, animation:Landroid/view/animation/Animation;
    const-wide/16 v1, 0x12c

    invoke-virtual {v0, v1, v2}, Landroid/view/animation/Animation;->setDuration(J)V

    .line 216
    return-object v0
.end method

.method private layout(Landroid/content/Context;)V
    .locals 7
    .parameter "context"

    .prologue
    const/high16 v6, 0x3f80

    const/4 v5, -0x2

    const/4 v4, 0x0

    .line 133
    new-instance v2, Landroid/widget/LinearLayout;

    invoke-direct {v2, p1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    iput-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mButtonsContainer:Landroid/widget/LinearLayout;

    .line 134
    invoke-static {}, Lcom/burstly/lib/util/Utils;->getFillparentValue()I

    move-result v0

    .line 135
    .local v0, fillparentVal:I
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mButtonsContainer:Landroid/widget/LinearLayout;

    new-instance v3, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v3, v0, v5}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v2, v3}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 137
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mButtonsContainer:Landroid/widget/LinearLayout;

    invoke-virtual {v2, v4}, Landroid/widget/LinearLayout;->setOrientation(I)V

    .line 138
    new-instance v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    invoke-direct {v2, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;-><init>(Landroid/content/Context;)V

    iput-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mRewardsView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    .line 139
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mRewardsView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    new-instance v3, Landroid/webkit/WebViewClient;

    invoke-direct {v3}, Landroid/webkit/WebViewClient;-><init>()V

    invoke-virtual {v2, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->setWebViewClient(Landroid/webkit/WebViewClient;)V

    .line 140
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mRewardsView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    new-instance v3, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v3, v0, v5, v6}, Landroid/widget/LinearLayout$LayoutParams;-><init>(IIF)V

    invoke-virtual {v2, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 142
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mRewardsView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    invoke-virtual {v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v1

    .line 143
    .local v1, webSettings:Landroid/webkit/WebSettings;
    invoke-virtual {v1, v4}, Landroid/webkit/WebSettings;->setSavePassword(Z)V

    .line 144
    invoke-virtual {v1, v4}, Landroid/webkit/WebSettings;->setSaveFormData(Z)V

    .line 145
    const/4 v2, 0x1

    invoke-virtual {v1, v2}, Landroid/webkit/WebSettings;->setJavaScriptEnabled(Z)V

    .line 146
    invoke-virtual {v1, v4}, Landroid/webkit/WebSettings;->setSupportZoom(Z)V

    .line 147
    invoke-virtual {v1, v4}, Landroid/webkit/WebSettings;->setBuiltInZoomControls(Z)V

    .line 148
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mRewardsView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    invoke-virtual {p0, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->addView(Landroid/view/View;)V

    .line 149
    iget-boolean v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mShowNavigationControls:Z

    if-eqz v2, :cond_0

    .line 150
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mButtonsContainer:Landroid/widget/LinearLayout;

    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mBackButton:Landroid/widget/Button;

    invoke-virtual {v2, v3}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 151
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mButtonsContainer:Landroid/widget/LinearLayout;

    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mNextButton:Landroid/widget/Button;

    invoke-virtual {v2, v3}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 152
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mButtonsContainer:Landroid/widget/LinearLayout;

    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mOpenExternalButton:Landroid/widget/Button;

    new-instance v4, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v4, v5, v5, v6}, Landroid/widget/LinearLayout$LayoutParams;-><init>(IIF)V

    invoke-virtual {v2, v3, v4}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 156
    :cond_0
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mButtonsContainer:Landroid/widget/LinearLayout;

    invoke-virtual {p0, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->addView(Landroid/view/View;)V

    .line 157
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mButtonsContainer:Landroid/widget/LinearLayout;

    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mCloseButton:Landroid/widget/Button;

    invoke-virtual {v2, v3}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 158
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mButtonsContainer:Landroid/widget/LinearLayout;

    const/high16 v3, -0x100

    invoke-virtual {v2, v3}, Landroid/widget/LinearLayout;->setBackgroundColor(I)V

    .line 159
    return-void
.end method


# virtual methods
.method destroy()V
    .locals 1

    .prologue
    .line 241
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->getAnimation()Landroid/view/animation/Animation;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 242
    new-instance v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView$1;

    invoke-direct {v0, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView$1;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;)V

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mDestroyCallback:Ljava/lang/Runnable;

    .line 252
    :goto_0
    return-void

    .line 250
    :cond_0
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mRewardsView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->destroy()V

    goto :goto_0
.end method

.method getRewardsView()Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;
    .locals 1

    .prologue
    .line 278
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mRewardsView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    return-object v0
.end method

.method protected onAnimationEnd()V
    .locals 1

    .prologue
    .line 256
    invoke-super {p0}, Landroid/widget/LinearLayout;->onAnimationEnd()V

    .line 257
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mDestroyCallback:Ljava/lang/Runnable;

    if-eqz v0, :cond_0

    .line 258
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mDestroyCallback:Ljava/lang/Runnable;

    invoke-interface {v0}, Ljava/lang/Runnable;->run()V

    .line 259
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mDestroyCallback:Ljava/lang/Runnable;

    .line 261
    :cond_0
    return-void
.end method

.method protected onAttachedToWindow()V
    .locals 1

    .prologue
    .line 233
    invoke-static {}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->getFadeInAnimation()Landroid/view/animation/Animation;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->startAnimation(Landroid/view/animation/Animation;)V

    .line 234
    invoke-super {p0}, Landroid/widget/LinearLayout;->onAttachedToWindow()V

    .line 235
    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 6
    .parameter "view"

    .prologue
    .line 188
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mBackButton:Landroid/widget/Button;

    if-ne p1, v2, :cond_1

    .line 189
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mRewardsView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    invoke-virtual {v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->goBack()V

    .line 205
    :cond_0
    :goto_0
    return-void

    .line 190
    :cond_1
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mNextButton:Landroid/widget/Button;

    if-ne p1, v2, :cond_2

    .line 191
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mRewardsView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    invoke-virtual {v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->goForward()V

    goto :goto_0

    .line 192
    :cond_2
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mCloseButton:Landroid/widget/Button;

    if-ne p1, v2, :cond_3

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mCloseListener:Landroid/view/View$OnClickListener;

    if-eqz v2, :cond_3

    .line 193
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->clearAnimation()V

    .line 194
    invoke-static {}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->getFadeOutAnimation()Landroid/view/animation/Animation;

    move-result-object v2

    invoke-virtual {p0, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->startAnimation(Landroid/view/animation/Animation;)V

    .line 195
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mCloseListener:Landroid/view/View$OnClickListener;

    invoke-interface {v2, p0}, Landroid/view/View$OnClickListener;->onClick(Landroid/view/View;)V

    goto :goto_0

    .line 196
    :cond_3
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mOpenExternalButton:Landroid/widget/Button;

    if-ne p1, v2, :cond_0

    .line 198
    :try_start_0
    new-instance v1, Landroid/content/Intent;

    const-string v2, "android.intent.action.VIEW"

    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mRewardsView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    invoke-virtual {v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->getUrl()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v3

    invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    .line 199
    .local v1, intent:Landroid/content/Intent;
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-virtual {v2, v1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
    :try_end_0
    .catch Landroid/content/ActivityNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 201
    .end local v1           #intent:Landroid/content/Intent;
    :catch_0
    move-exception v0

    .line 202
    .local v0, anfe:Landroid/content/ActivityNotFoundException;
    sget-object v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v3, "ModalBrowserView"

    invoke-virtual {v0}, Landroid/content/ActivityNotFoundException;->getMessage()Ljava/lang/String;

    move-result-object v4

    const/4 v5, 0x0

    new-array v5, v5, [Ljava/lang/Object;

    invoke-virtual {v2, v3, v4, v5}, Lcom/burstly/lib/util/LoggerExt;->logError(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    goto :goto_0
.end method

.method setCloseListener(Landroid/view/View$OnClickListener;)V
    .locals 0
    .parameter "closeListener"

    .prologue
    .line 269
    iput-object p1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->mCloseListener:Landroid/view/View$OnClickListener;

    .line 270
    return-void
.end method
